<div class="global_form_popup">
<?php echo $this->form->render($this) ; ?>
</div>

<script type="text/javascript">
    function changeName(){
        var form = $$('.form-elements')[0];
        var inputs = form.getElements('input[type="text"]');
        for(var i = 0; i < inputs.length; i++){
            var name = inputs[i].get('name');
           var a  =  name.split('poll_options_');
            inputs[i].set('name','poll_options['+a[1]+']');
        }
        
    }
    changeName();
</script>